package com.itheima.service.product;

import com.github.pagehelper.Page;
import com.itheima.domain.Product;

import java.util.List;

public interface ProductService {

    Page<Product> findAll(String pageNum, String pageSize);

    void save(Product product);

    Product findById(String id);

    void update(Product product);

    Boolean deleteByIds(String ids);

    void openByIds(String ids);

    void closeByIds(String ids);

    Page<Product> findAllByName(String pageNum, String pageSize, String name);
}
